<script setup lang="ts">
const porps = defineProps<{
  title?: string
  leftText?: string
  rigthtText?: string
}>()
const onClickLeft = () => {
  console.log('点击了左侧按钮')
}
const onClickRight = () => {
  console.log('点击了右侧按钮')
}
</script>

<template>
  <van-nav-bar
    fixed
    placeholder
    :title="title"
    :left-text="leftText"
    :right-text="rigthtText"
    left-arrow
    @click-left="onClickLeft"
    @click-right="onClickRight"
  />
</template>

<style lang="scss" scoped>
::v-deep {
  .van-nav-bar__arrow {
    color: var(--cp-text1);
    font-size: 18px;
  }
}
// :deep(.van-nav-bar__arrow) {
//   color: var(--cp-text1);
// }
</style>
